//导入service对象
import service from '../utils/request'

//一个请求封装成一个函数并导出
// 获取老师列表数据
export function teacherlist(payload = {}){
    return service.get('/teacher', { params: payload } )
}
// 删除老师列表数据
export function teacher_delete(payload = {}){
    return service.delete('/teacher/'+payload.id)
}
export function teacher_update(payload = {}){
    var {id,...data} = payload;
    return service.patch('/teacher/'+id,  data )
}
export function teacher_add(payload = {}){
    return service.post('/teacher',  payload  )
}
// export function goodscategorylist_delete(payload = {}){
//     return service.delete('/api/goodscategorylist/'+payload.id)
// }